//
//  FirstViewController.h
//  shouji138
//
//  Created by administrator on 8/27/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface FirstViewController : UIViewController {
	IBOutlet UITextField *serveraddress;
	IBOutlet UITextField *username;
	IBOutlet UITextField *password;
	IBOutlet UIScrollView *scrollView;
	
	unsigned int keyboardShown;
	
	UIAlertView *alertView;
	
	
}

-(IBAction)buttonClick:(id)sender;
-(IBAction)wrongInputAlert:(id)sender;

-(BOOL)isValidIPAddress:(NSString *)theIp;
-(BOOL)isValidPort:(NSString *)thePort;
-(BOOL)isValidName:(NSString *)theName;
-(BOOL)doValidation;

-(BOOL)RegExpMatch:(NSString *)string withPattern:(NSString*)pattern;

-(void)showAlertView:(NSString *)comment;

@end
